<%@ page import="com.hline.kbcss.MyDriver"%>
<%@ page import="java.sql.*"%>
<%
String field=request.getParameter("field");
String fdesc=request.getParameter("fielddesc");
Statement st=null;
PreparedStatement pst=null;
try{
st=MyDriver.getConnection("READ");
pst=MyDriver.getPrepare("insert into fields values(null,?,?)");
	pst.setString(1,field);
	pst.setString(2,fdesc);
	int i=pst.executeUpdate();
	if(i>0)
	{
		response.sendRedirect("interests.jsp");
	}
	else
	{
		response.sendRedirect("addInterests.jsp");
	}
}
catch(Exception e)
{
	System.out.println(e);
}
%>
